﻿using Microsoft.EntityFrameworkCore.Metadata.Internal;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Entity.Models
{
    [Table("RoleInfo")]
    public class RoleInfo
    {
        [Key]
        public int RoleId { get; set; }//Int AUTO_INCREMENT PRIMARY KEY 角色Id
        public string? CompanyNo { get; set; }//Varchar(50) FK:公司代码
        public string? RoleName { get; set; }//Varchar(50) 角色名称
        public string? RoleRights { get; set; }//Text/JSON 角色权限列表(RightNo，JSON数组)
        public string? Remark { get; set; }//Varchar(200)    备注
        public int? SuperAdmin { get; set; }//Int 是否超级管理员0-否1-是
        public string? ExtData { get; set; }//json 扩展数据
        public DateTime? BuildTime { get; set; }//Datetime    建档时间
        public DateTime? EditTime { get; set; }//Datetime 最后编辑时间
        public string? Operator { get; set; }//Varchar(50) 操作员名称
    }
}
